package com.scjp_Java6.ExceptionHandling;
/*
 * Create a class with a main( ) that throws an object of class Exception inside a try block. 
 * Give the constructor for Exception a String argument. 
 * Catch the exception inside a catch clause and print the String argument. 
 * Add a finally clause and print a message to prove you were there.
 */
public class TIJ_Ex_1 {

	public static void main(String[] args) {
		try {
			throw new Exception("asd");
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}finally{
			System.out.println("Alex was here!! :D ");
		}
	}
}
